package com.ckerchina.admin.ckadmin.dao;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.ckerchina.admin.ckadmin.domain.SmsLog;

@Repository
public class SmsLogDAO extends AbstractDao<SmsLog, Long>{

	public List<SmsLog> findAllSmsLog() {
		return this.entityManager.createQuery("SELECT o FROM SmsLog o ORDER BY o.id ASC", SmsLog.class).getResultList();
	}

	@Transactional
	public void persist(SmsLog t) {
		this.entityManager.persist(t);
	}
}
